From 38114280277b1720b0114b882d337d10231b5baf Mon Sep 17 00:00:00 2001 From: zephex0 Date: Fri, 19 Apr 2024 02:39:43 +0000 Subject: test changes --- .../manga/[title]/[id]/[read]/currentReading.jsx | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/app/manga/[title]/[id]/[read]/currentReading.jsx (limited to 'src/app/manga/[title]/[id]') diff --git a/src/app/manga/[title]/[id]/[read]/currentReading.jsx b/src/app/manga/[title]/[id]/[read]/currentReading.jsx deleted file mode 100644 index 0050d61..0000000 --- a/src/app/manga/[title]/[id]/[read]/currentReading.jsx +++ /dev/null @@ -1,34 +0,0 @@ -"use client"; - -import styles from "./read.module.css"; -import { useEffect } from "react"; - -function get_current_info(title) { - let req = {}; - - useEffect(() => { - const data = JSON.parse(localStorage.getItem("mangaData")); - data.watchHis.forEach((element) => { - if (element.title === title) { - req.chapter = element.chapter; - req.volume = element.volume; - } - }); - }, []); - - return req || false; -} - -export default function Current({ name: title }) { - let data = get_current_info(title); - if (!data) { - return; - } - - return ( -
-

{data.chapter}

-

{data.volume}

-
- ); -} -- cgit v1.2.3